﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="LenguajeEdit.aspx.cs"
    Inherits="CrmContacto.WebApp.App.LenguajeEdit" %>

<%@ Import Namespace="Web.Framework.Translate" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">

<style type="text/css">
        
    .translationText
    {
        width: 400px;
    }
    
</style>

</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <asp:Image Width="15px" Height="15px" ID="imgExpandResults" CssClass="imgExpand"
            ImageUrl="/Images/icon_blockexpanded.png" runat="server" ClientIDMode="Static"
            alt="" onclick="window.AppCommonObj.toggleVisibility(this.id, 'searchBox');" />
        <asp:Literal ID="Literal22" runat="server" Text='<%$ Code: LocalizationProvider.Instance["Bo.Lenguaje.EditTitle"]%>' />
        <asp:Label ID="lblSearchResult" runat="server" Text="" CssClass="lblSearchResult"></asp:Label>
    </h2>
    <div class="editionContainerFilter" id="searchBox">
        <p>
            <span class="title">
                <asp:Literal ID="Literal4" runat="server" Text='<%$ Code: LocalizationProvider.Instance["MaestroBase.Id"]%>' />:</span>
            <asp:TextBox ID="txtId" runat="server" ClientIDMode="Static" CssClass="inputs inputlong"
                title='<%$ Code: LocalizationProvider.Instance["MaestroBase.Id"]%>'></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title">
                <asp:Literal ID="Literal2" runat="server" Text='<%$ Code: LocalizationProvider.Instance["MaestroBase.Nombre"]%>' />:</span>
            <asp:TextBox ID="txtNombre" runat="server" ClientIDMode="Static" CssClass="inputs inputlong"
                title='<%$ Code: LocalizationProvider.Instance["MaestroBase.Nombre"]%>'></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <asp:LinkButton ID="lnkGuardar" runat="server" OnClick="lnkGuardar_Click">
            <asp:Literal ID="Literal3" runat="server" Text='<%$ Code: LocalizationProvider.Instance["Bo.Command.Guardar"]%>' /></asp:LinkButton>
        <div class="clear">
        </div>
    </div>
    <h2>
        <asp:Image Width="15px" Height="15px" ID="Image1" CssClass="imgExpand" ImageUrl="/Images/icon_blockcollapsed.png"
            runat="server" ClientIDMode="Static" alt="" onclick="window.AppCommonObj.toggleVisibility(this.id, 'pnlResults');" />
        <asp:Literal ID="Literal1" runat="server" Text='<%$ Code: LocalizationProvider.Instance["Bo.Lenguaje.Terminos"]%>' />
        <asp:Label ID="Label1" runat="server" Text="" CssClass="lblSearchResult"></asp:Label>
    </h2>
    <asp:Panel ID="pnlResults" CssClass="editionContainerForGrid" runat="server" ClientIDMode="Static">
        <asp:GridView ID="Grid" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
            AutoGenerateColumns="False" DataKeyNames="ClaveId" Width="100%" AllowPaging="False"
            OnPageIndexChanging="Grid_PageIndexChanging" OnRowCommand="Grid_RowCommand" OnRowDataBound="Grid_RowDataBound">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="ClaveId" Visible="true" HeaderText='<%$ Code: LocalizationProvider.Instance["MaestroBase.Id"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Nombre" HeaderText='<%$ Code: LocalizationProvider.Instance["MaestroBase.Nombre"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:CheckBoxField DataField="EsJavascript" Visible="true" HeaderText='<%$ Code: LocalizationProvider.Instance["Lenguaje.EsJavascript"] %>'>
                <HeaderStyle HorizontalAlign="Left" Width="100px" />
                </asp:CheckBoxField>                
                <asp:TemplateField>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                    <headertemplate>
                         <asp:Literal ID="Literal1000" runat="server" Text='<%$ Code: LocalizationProvider.Instance["Lenguaje.Traduccion"]%>' />
                    </headertemplate>
                    <ItemTemplate>
                        <%--<asp:TextBox ID="txtTraduccion" runat="server" CssClass="translationText"></asp:TextBox>--%>
                        <input name="txtTraduccionId_<%# Eval("ClaveId")%>" value="<%# Eval("Traduccion")%>" class="translationText" type="text" />                        
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4b6c9e" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="#4b6c9e" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </asp:Panel>
    <script type='text/javascript'>

        $(document).ready(function () {

            if (!window.AppCommonObj) {
                window.AppCommonObj = new AppCommon();
            }

            //$('input[title]').inputHints();
            
            document.DirtyCheck = new DirtyCheck();
            document.DirtyCheck.loadControlState();

            AppCommonObj.ConfirmMovePage();
        });
    </script>
</asp:Content>
